package ua.khpi.si.kit49.diploma.core;

import java.util.List;

/**
 * Class represents message which returns to user after successful or failed
 * registration
 * 
 * @author netstalk3r
 * 
 */

public class JsonRegistrationMessage {

	// flag is determines validity of the registration operation
	private boolean isValid;
	// error related to the login
	private String loginError;
	// error related to the email
	private String emailError;
	// error related to the password
	private String passwordError;
	// other errors
	private List<String> errors;

	public JsonRegistrationMessage() {
		super();
	}

	public boolean isValid() {
		return isValid;
	}

	public void setValid(boolean isValid) {
		this.isValid = isValid;
	}

	public String getLoginError() {
		return loginError;
	}

	public void setLoginError(String loginError) {
		this.loginError = loginError;
	}

	public String getEmailError() {
		return emailError;
	}

	public void setEmailError(String emailError) {
		this.emailError = emailError;
	}

	public String getPasswordError() {
		return passwordError;
	}

	public void setPasswordError(String passwordError) {
		this.passwordError = passwordError;
	}

	public List<String> getErrors() {
		return errors;
	}

	public void setErrors(List<String> errors) {
		this.errors = errors;
	}

}
